import Cart from "../views/cart";
import Goodsdetail from "../views/goodsdetail";
import Home from "../views/home";
import Login from "../views/login";
import Mine from "../views/mine";
import Register from "../views/register";
import {
  MessageFill,
  UnorderedListOutline,
  UserOutline,
} from "antd-mobile-icons";
export const routes = [
  {
    path: "/",
    element: <Home />,
    title: "首页",
    icon: <MessageFill />,
    hiddentop: true,
    hiddennenu: true,
  },
  {
    path: "/cart",
    element: <Cart />,
    title: "购物车",
    icon: <UnorderedListOutline />,
    hiddennenu: true,
  },
  {
    path: "/mine",
    element: <Mine />,
    title: "我的",
    icon: <UserOutline />,
    hiddennenu: true,
  },

  {
    path: "/login",
    element: <Login />,
    title: "登录",
    isShow: true,
    hiddentop: true,
    hiddenmenu: false,
  },
  {
    path: "/register",
    element: <Register />,
    title: "注册",
    isShow: true,
    hiddentop: true,
    hiddenmenu: false,
  },
  {
    path: "/detail",
    element: <Goodsdetail />,
    title: "详情",
    isShow: true,
    hiddennenu: false,
  },
];
